//
//  InvestDetailHeadView.m
//  ZZLC
//
//  Created by 杨春至 on 2017/12/15.
//  Copyright © 2017年 ZhongZeng. All rights reserved.
//

#import "InvestDetailHeadView.h"

@interface InvestDetailHeadView ()
@property (weak, nonatomic) IBOutlet UILabel *titileLb;
@property (weak, nonatomic) IBOutlet UILabel *incomePerscentLb;
@property (weak, nonatomic) IBOutlet UILabel *detailLb;
@property (weak, nonatomic) IBOutlet UILabel *restLb;

@end

@implementation InvestDetailHeadView

- (void)setModel:(ProDetailModel *)model{
    _model = model;
    _titileLb.text = _model.title;
    _incomePerscentLb.text = [NSString stringWithFormat:@"%ld%@",([_model.baseEarnings integerValue]+[_model.jiangLiEarnings integerValue]),@"%"];
    NSInteger atleatMoney = [_model.atleastMoney integerValue]/100;
    _detailLb.text = [NSString stringWithFormat:@"%@天 | %ld元",_model.tzqx,atleatMoney];
//    atleastMoney
    
    _restLb.text = [NSString stringWithFormat:@"剩余金额%.2f万元",[_model.leftCopies floatValue]/10000];
    
}

@end
